﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品分类表
    /// </summary>
    [SqlSugar.SugarTable("corecmsfoodcategory")]
    public partial class corecmsfoodcategory
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 品牌id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "corpId", IsNullable = false)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "storeId", IsNullable = false)]
        public long storeId { get; set; }

        /// <summary>
        /// 上级分类id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "parentId", IsNullable = false)]
        public Int64 parentId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "name", IsNullable = false)]
        public String name { get; set; }

        /// <summary>
        /// 分类别名
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "byName", IsNullable = true)]
        public String byName { get; set; }

        /// <summary>
        /// 手机端是否显示
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "appletShow", IsNullable = true)]
        public Int32? appletShow { get; set; }

        /// <summary>
        /// 分类助记码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "helpCode", IsNullable = true)]
        public String helpCode { get; set; }

        /// <summary>
        /// 出品部门id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "departId", IsNullable = true)]
        public Int64? departId { get; set; }

        /// <summary>
        /// 选中图片地址
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "upIcon", IsNullable = true)]
        public String upIcon { get; set; }

        /// <summary>
        /// 未选中图片地址
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "icon", IsNullable = true)]
        public String icon { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isDelete", IsNullable = false)]
        public bool? isDelete { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "modifyTime", IsNullable = true)]
        public Int64? modifyTime { get; set; }

        /// <summary>
        /// 商品排序
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "sort", IsNullable = true)]
        public Int32? sort { get; set; }

        /// <summary>
        /// 商品类型(0标准商品,1称重商品,2计件商品)
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "stand", IsNullable = false)]
        public Int32 stand { get; set; }

        /// <summary>
        /// 分类租户ID
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "tenantId", IsNullable = false)]
        public long tenantId { get; set; }

        /// <summary>
        /// 前台销售不显示
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "canPos", IsNullable = false)]
        public bool canPos { get; set; }

        /// <summary>
        /// 前台销售该类别不显示 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "canParentPos", IsNullable = false)]
        public bool canParentPos { get; set; }
    }
}
